﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Iptv.MediaReporter.Model
{
    public class FingerPrintResult : ReportResponseModel
    {
        public FingerPrintResultData data { get; set; }
    }

    public class FingerPrintResultData : FingerPrintRequest
    {
        /// <summary>
        /// 优先级
        /// </summary>
        public int reportRes { get; set; }
        /// <summary>
        /// 预计完成时间
        /// </summary>
        public object estimateTime { get; set; }
        /// <summary>
        /// 完成百分比（1-100）
        /// </summary>
        public object completePercent { get; set; }
        public List<FingerJobData> vlist { get; set; }
    }

    /// <summary>
    /// 采集指纹作业信息
    /// </summary>
    public class FingerJobData
    {
        public string guid { get; set; }
        public string subJobId { get; set; }
        public string videoUrl { get; set; }
        /// <summary>
        /// 指纹文件地址
        /// </summary>
        public string fingerUrl { get; set; }
        /// <summary>
        /// 通过算法 (如 SHA256) 加密后生成的字符串 status为3时有效
        /// </summary>
        public string hashCode { get; set; }
        //作业状态 1 任务启动 2 执行中 3 执行成功 4 执行失败 5 超时 6 取消
        public int status { get; set; }
        public string message { get; set; }
    }
}
